package uk.org.fuzelogik.eldaw.auth.openid;

import org.openid4java.consumer.ConsumerManager;

/**
 * Should be implemented by the applications <code>Application</code> subclass
 * if you intend on using any components that use OpenID authentication.
 * 
 * @author cgdavies
 */
public interface IOpenIDAwareApplication
{
	/**
	 * @return the <code>ConsumerManager</code> instance shared throughout
	 * the whole application.  The same instance should be returned for each
	 * invocation
	 */
	public ConsumerManager getConsumerManager();
	
	/**
	 * @return the URL that the OpenID identity provider should return to after
	 * a user authenticates.  This needs to be an absolute URL
	 */
	public String getOpenIdReturnUrl();
}
